# -*- coding: utf-8 -*-
import uuid
from persistent import Persistent
from zope.interface import implements
from zope.location import Location

from pargo.content.container import OrderedContainer
from pargo.interfaces import IContent


class Content(Location, OrderedContainer):
    """
    Base class for all content objects.
    """
    implements(IContent)
    
    def getName(self):
        return self.__name__
    
    def __init__(self):
        OrderedContainer.__init__(self)
        self.uid = str(uuid.uuid4()).replace('-', '')
